package com.ruoyi.project.business.domain.rules.month;

import com.ruoyi.project.business.domain.entity.Emp;
import com.ruoyi.project.business.domain.model.JudgeResult;
import com.ruoyi.project.business.domain.model.Solution;
import com.ruoyi.project.business.domain.rules.ForManagerRule;
import com.ruoyi.project.business.domain.rules.Rule;
import lombok.Data;

import java.util.Arrays;

/**
 * 每天总人数
 */
@Data
public class EmpCountPerDay extends ForManagerRule {

    /**
     * 每天最多几个人
     */
    private int maxCountPerDay;
    /**
     * 每天最少几个人
     */
    private int minCountPerDay;


    @Override
    public JudgeResult judge(Solution solution, Emp emp) {
        // TODO
        return accept();
//        throw new RuleException(this.getClass().getName(), -1);
    }

    @Override
    public void setConflicts() {
        setType(Rule.RULE_TYPE_MANAGER);
        this.conflicts = Arrays.asList(NotMonday.class, MustSunday.class);
    }
}
